namespace STOWaybillMall.Core
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using TongTongMall.Domain.Repositories.Attributes;

    [Table("OrderProductInfo")]
    public partial class OrderProductInfo
    {
        [Identify]
        public Guid OrderProductID { get; set; }

        public int ProductID { get; set; }

        [Required]
        [StringLength(200)]
        public string ProductName { get; set; }

        [StringLength(200)]
        public string ProductSpecAndPropName { get; set; }

        [StringLength(200)]
        public string ProductFullName { get; set; }

        public Guid? ImageID { get; set; }

        public long UserID { get; set; }

        [Column(TypeName = "money")]
        public decimal BuyPrice { get; set; }

        [Column(TypeName = "money")]
        public decimal TotalFee { get; set; }

        public int BuyCount { get; set; }

        public int? UseInvernery { get; set; }

        [Column(TypeName = "money")]
        public decimal? OrginalPrice { get; set; }

        public int? BuyCardinality { get; set; }

        [Required]
        [StringLength(32)]
        public string OrderID { get; set; }

        public decimal? AccessoriesRate { get; set; }

        [StringLength(200)]
        public string SendCargo { get; set; }

        [StringLength(50)]
        public string ProductCategory { get; set; }

        [StringLength(200)]
        public string ProductProperty { get; set; }

        [StringLength(10)]
        public string Unit { get; set; }

        [StringLength(200)]
        public string BuyExplain { get; set; }
    }
}
